<download> : Download File (HTTP)
Downloads file from a remote FTP server.
Syntax:
<download>("LocalFile", "RemoteFile", "UserName", "Password")
LocalFile
Full path to the file on local machine. If the file already exists it will
be overwritten without a prior prompt.
RemoteFile
Full path to the remote file (e.g.,
http://www.pitrinec.com/index.html).
UserName
User login name. If empty the "anonymous" is considered.
Password
User name login password.
Example:
<#> This sample macro downloads home page file from
www.pitrinec.com
<#>
<cmds>
<msg>(32,32,"Where To Save Downloaded File?","Message",0)
<var_oper>(vLocalFolder,"",SELECT_FOLDER,"","", "0")
<if_str>("_vCanceled==1")<exitmacro><endif>
<msgoff>
<download>("%vLocalFolder%\index.html","http://www.pitrinec.com/index.html","","")
<msg>(-100,-100,"File is downloaded. Do you want to open it?","Message",2)
<if_str>("_vMsgButton==YES")
<fileopen>("%vLocalFolder%\index.html",0)
<endif>